import request from '@/utils/request'

// 查询营销中心--工程列表
export function listEngineering(query) {
  return request({
    url: '/service/engineering/list',
    method: 'get',
    params: query
  })
}

// 查询营销中心--工程详细
export function getEngineering(id) {
  return request({
    url: '/service/engineering/' + id,
    method: 'get'
  })
}

// 新增营销中心--工程
export function addEngineering(data) {
  return request({
    url: '/service/engineering',
    method: 'post',
    data: data
  })
}

// 修改营销中心--工程
export function updateEngineering(data) {
  return request({
    url: '/service/engineering',
    method: 'put',
    data: data
  })
}

// 删除营销中心--工程
export function delEngineering(id) {
  return request({
    url: '/service/engineering/' + id,
    method: 'delete'
  })
}
